package handax.entities;

import java.util.Date;

/**
 *
 * @author Andreas Apostolidis
 */
public class Reservation {

    //Column name = "REST_ID"
    private int restId;
    //Column name = "USERNAME" 
    private String username;
    //Column name = "RESERV_DATE" 
    private Date reservDate;
    //Column name = "STATUS_ID"
    private short statusId;
    
    private String restName;
       
    public Reservation() {
    }

    public Reservation(int restId, String restName, String username, Date reservDate, short statusId) {
        this.restId = restId;
        this.restName = restName;
        this.username = username;
        this.reservDate = reservDate;
        this.statusId = statusId;
    }

    public Reservation(int restId, String restName, String username) {
        this.restId = restId;
        this.restName = restName;
        this.username = username;
    }    
    public int getRestId() {
        return restId;
    }

    public void setRestId(int restId) {
        this.restId = restId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getReservDate() {
        return reservDate;
    }

    public void setReservDate(Date reservDate) {
        this.reservDate = reservDate;
    }

    public short getStatusId() {
        return statusId;
    }

    public void setStatusId(short statusId) {
        this.statusId = statusId;
    }

    public String getRestName() {
        return restName;
    }

    public void setRestName(String restName) {
        this.restName = restName;
    }
    

    @Override
    public String toString() {
        return username + " κράτηση για: " + restName + " status: " + statusId;
    }
    
    
}
